package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据安全管理对象 sf_dg_data_safe
 * 
 * @author ruoyi
 * @date 2024-05-29
 */
public class SfDgDataSafe extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 数据类别 */
    @Excel(name = "数据类别")
    private String dataType;

    /** 用户 */
    @Excel(name = "用户")
    private String userName;

    /** 权限名称 */
    @Excel(name = "权限名称")
    private String ruleName;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private String flag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setFlag(String flag) 
    {
        this.flag = flag;
    }

    public String getFlag() 
    {
        return flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dataType", getDataType())
            .append("userName", getUserName())
            .append("ruleName", getRuleName())
            .append("flag", getFlag())
            .append("createTime", getCreateTime())
            .toString();
    }
}
